export function createExposeProxy(expose:any, ...refs:any) {
  const exposeProxy = new Proxy(expose, {
    has(target, key) {
      const has = key in target
      if (has) {
        return true
      }
      for (const item of refs) {
        if (item.value && key in item.value) {
          return true
        }
      }
      return false
    },
    get(target, key) {
      if (key in target) {
        return target[key]
      }
      for (const item of refs) {
        if (item.value && key in item.value) {
          return item.value[key]
        }
      }
    },
  })
  return exposeProxy
}

